package com.info.zhiduoduo.admin.controller;

import com.info.zhiduoduo.admin.service.NotificationService;
import com.info.zhiduoduo.common.constants.SmartResult;
import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("notification")
public class NotificationController {

	@Autowired
	NotificationService notificationService;

	@ApiOperation("发送boss手机验证码")
	@PostMapping("/bossVerifyCode")
	public SmartResult sendBossVerifyCode(@RequestBody BaseSimpleFormBean formBean) {
		return notificationService.sendBossVerifyCode(formBean);
	}
}
